<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ModifyForumCategories.ascx.cs" Inherits="forums_controls_administration_ModifyForumCategories" %>
<fieldset>
    <legend>New Forum Category</legend>
    <p>
        Name: <asp:TextBox runat="server" ID="txtName" MaxLength="100" />
    </p>
    <p>
        <asp:Button runat="server" ID="btnSave"
            Text="Save" OnClick="btnSave_Click" />
    </p>
</fieldset>

<fieldset>
    <legend>Modify Forum Categories</legend>

<asp:GridView runat="server" ID="gridCategories" AutoGenerateColumns="False" ShowHeader="False" Width="100%">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                Up
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:TextBox runat="server" ID="txtName"
                    Text='<%# Eval("Name") %>'
                    Width="75%"/>
                <asp:Button runat="server" ID="btnSave"
                    Text="Save"
                    CommandArgument='<%#Eval("ID")%>'
                    OnCommand="SaveCategory"/>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
                Down
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>

</fieldset>